﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

project ("3DTest")
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")


set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_PREFIX_PATH "c:/Qt/5.15.2/msvc2019_64") # Qt Kit Dir
set(CMAKE_AUTOUIC ON)	#Qt 相关操作
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)	# 生成动态库lib文件已经符号文件
set(CMAKE_SKIP_BUILD_RPATH TRUE)

#通用路径设置
set(QTDIR "C:/Qt/5.15.2/msvc2019_64/")
set(OpenCV_DIR "C:/Program Files/opencv/build/x64/vc15/lib")


set(ouput ${CMAKE_SOURCE_DIR}/bin)
set(THIRD_INC ${CMAKE_SOURCE_DIR}/third_party/include)
set(SRCLIB ${CMAKE_SOURCE_DIR}/third_party/lib)
set(root ${CMAKE_SOURCE_DIR})

set(LIBRARY_OUTPUT_PATH ${ouput})		#库文件输出路径
set(EXECUTABLE_OUTPUT_PATH ${ouput})	#执行文件输出路径

#通用头文件包含路径
include_directories(
	${CMAKE_SOURCE_DIR}/include
	${QTDIR}/include			#QT头文件目录
	)


# 包含子项目
add_subdirectory(./logger)
add_subdirectory (./common)
add_subdirectory (./hal)
add_subdirectory (./systemconfig)

add_subdirectory (./component)

add_subdirectory (./tools)
add_subdirectory (./test)
